package com.youlai.boot.core.tenant.model.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

/**
 * 租户申请表单
 *
 * @author haoxr
 * @since 3.0.0
 */
@Schema(description = "租户申请表单")
@Data
public class TenantApplicationForm {

    @Schema(description = "申请人姓名")
    @NotBlank(message = "申请人姓名不能为空")
    private String applicantName;

    @Schema(description = "申请人手机号")
    @NotBlank(message = "申请人手机号不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String applicantMobile;

    @Schema(description = "申请人邮箱")
    private String applicantEmail;

    @Schema(description = "申请人身份证号")
    private String applicantIdCard;

    @Schema(description = "申请人微信 OpenID")
    private String applicantOpenId;

    @Schema(description = "租户名称（公司/组织名称）")
    @NotBlank(message = "租户名称不能为空")
    private String tenantName;

    @Schema(description = "营业执照号")
    private String businessLicense;

    @Schema(description = "所属行业")
    private String industry;

    @Schema(description = "公司规模")
    private String companySize;

    @Schema(description = "联系地址")
    private String contactAddress;

    @Schema(description = "申请说明/备注")
    private String description;
}

